package com.pingan.haofang.searchcloud.quartz.dto;

/**
 * 定时任务task
 *
 * @author LUYI374
 * @date 2017年5月8日
 * @since 1.0.0
 */
public class ScheduleTask {

    /**
     * 任务名称
     */
    private String name;

    /**
     * 任务组名称
     */
    private String group;

    /**
     * 定时配置
     */
    private String cron;

    /**
     * 任务描述
     */
    private String desc;

    /**
     * 执行目标对象
     */
    private String target;

    /**
     * 运行时的参数
     */
    private ArgsDto args;

    /**
     * 执行方法
     */
    private String method;

    public ScheduleTask() {
    }

    public ScheduleTask(String name, String group, String cron, String desc, String target, ArgsDto args, String method) {
        this.name = name;
        this.group = group;
        this.cron = cron;
        this.desc = desc;
        this.target = target;
        this.args = args;
        this.method = method;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public ArgsDto getArgs() {
        return args;
    }

    public void setArgs(ArgsDto args) {
        this.args = args;
    }
}
